#' Import a personography into a \code{docNetwork} object.
#' File must be in the format: ID, Role
#'
#' @param dnet a \code{docNetwork} object to add the data to.
#'
#' @param path A string that gives the full path to the csv
#' formatted data file.
#'
#' @return dnet The modified dnet object.
#'
#' @examples
#'
#' dnet = importPersonography(dnet, "path/to/file/data.csv")
#'
importPersonography <- function(dnet, path ="") {
dnet@persons = read.csv(path)
return(dnet)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.